package com.bwei.like.mynewstop.Bean;

/**
 * Created by LiKe on 2016/11/14.
 */
public class CityInfo implements Comparable<CityInfo>{
    private String cityName;
    private String nameSort;
    private boolean flag;

    public CityInfo(String cityName, String nameSort) {
        this.cityName = cityName;
        this.nameSort = nameSort;
    }

    public CityInfo() {
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getNameSort() {
        return nameSort;
    }

    public void setNameSort(String nameSort) {
        this.nameSort = nameSort;
    }

    @Override
    public int compareTo(CityInfo another) {
        return this.nameSort.compareTo(another.nameSort);
    }


    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return "CityInfo{" +
                "cityName='" + cityName + '\'' +
                ", nameSort='" + nameSort + '\'' +
                '}';
    }
}
